package com.lightsaber.trade.as.entity.planning;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_LEVEL_3_CAMPUS_STATUS")
public class Level3CampusStatus extends BaseEntity {

    private static final long serialVersionUID = 4991428846132091602L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "LEVEL_3_PLANNING_ID", updatable = false)
    private Level3Planning level3Planning;

    @Column(name = "DISCIPLINE", nullable = false, length = 100)
    private String discipline;

    @Column(name = "OPERATING_CAMPUS", nullable = false, length = 100)
    private String operatingCampus;

    @Enumerated(EnumType.STRING)
    @Column(name = "STATUS", nullable = false, length = 30)
    private PlanningStatus status;

    @Column(name = "REASON", nullable = true, length = 1000)
    private String reason;

    public String getDiscipline() {
        return discipline;
    }

    public void setDiscipline(final String discipline) {
        this.discipline = discipline;
    }

    public String getOperatingCampus() {
        return operatingCampus;
    }

    public void setOperatingCampus(final String operatingCampus) {
        this.operatingCampus = operatingCampus;
    }

    public Level3Planning getLevel3Planning() {
        return level3Planning;
    }

    public void setLevel3Planning(final Level3Planning level3Planning) {
        this.level3Planning = level3Planning;
    }

    public PlanningStatus getStatus() {
        return status;
    }

    public void setStatus(final PlanningStatus status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(final String reason) {
        this.reason = reason;
    }

}
